<?PHP 
$userid = isset($_COOKIE["gwt_userid"]) ? $_COOKIE["gwt_userid"] : "";
$zfb = isset($_COOKIE["gwt_zfb"]) ? $_COOKIE["gwt_zfb"] : "";
$phone = isset($_COOKIE["gwt_phone"]) ? $_COOKIE["gwt_phone"] : "";
$email = isset($_COOKIE["gwt_email"]) ? $_COOKIE["gwt_email"] : "";
?>

<?PHP
include("common/connect.php");
include("../../public/common.php");
$q = trim(CheckUrlParamNoDie("q"));
$catid = CheckUrlParamNoDie("catid");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="keywords" content="购物兔,在线购物,购物商城,秋季女装,搭配,分享,网购,淘宝网购,网购大全,网购女装,淘宝网购物,淘宝网导购,淘宝网女装,购物分享,新奇,新潮,好玩" /> 
<meta name="description" content="购物兔是国内最专业的网络购物门户网站,以第三方的身份提供客观公正的网购向导服务,只要您输入想要的商品，就可以享受购物返利，操作简单，返现块。" /> 
<meta name="robots" content="index, follow" /> 
<meta name="googlebot" content="index, follow" />
<title>购物兔-购物搜索引擎 - 购物导航,购物返利,,打折,购物分享</title>
<link type="text/css" rel="stylesheet" href="http://fanli.gouwutu.com/template/default/css/malllist.css" />
<link type="text/css" rel="stylesheet" href="../css/global.css" />
<script language="javascript">
function OnAdjust()
{
	if (document.getElementById("q").value == '请输入商城的名称...')
		document.getElementById("q").value = '';
}
</script>
</head>
<body class="gMalllist">
<div id="Outside">
    <div id="main">
	<div class="Content">
        <div class="mallcat">
          <div class="malltop"><b>选择分类</b></div>
          <div class="malldown">
            <div class="mallleft" style="display:none;"><span class="gif">选择商家种类</span></div>
            <div class="mallright">
            	<ul>
                <li <?php if ($catid == "") echo "class='ac'"; ?>><a href="./malllist.php">推荐商家</a></li>
                <?PHP 
					$res = mysql_query( "select typename,typecode from duoduo_malltype where sort > 0 order by sort" );
					while( $res && $row = mysql_fetch_assoc( $res ))
					{ 
						echo "<li ";
						if ($catid == $row["typecode"]) echo "class='ac'";
						echo "><a href='?catid=".$row["typecode"]."'>".$row["typename"]."</a></li>";
					}
				?>
        		</ul>
            </div>
            <div style="clear:both"></div>
          </div>
        </div>
		<div class="malllist">
        	<div class="Menutop"><b>商城列表</b></div>
            <div class="SClist">
            <ul>
<?PHP
if ($catid == "")
	$res = mysql_query( "select * from duoduo_mall where recommend_order > 0 and sort > 0 order by recommend_order" );
else
	$res = mysql_query( "select * from duoduo_mall where catid like '%".$catid.",%' and sort > 0 order by sort desc" );
while( $res && $row = mysql_fetch_assoc( $res ))
{
?>
			<li>
				<div class="malllogo"><img height="45" width="100" src="upload/<?PHP echo $row["logo"] ?>"></div>
				<div class="mallname"><?PHP echo $row["name"] ?></div>
				<div class="mallfan">最高返：<font style="font-weight:bold; color:#FF0000"><?PHP echo $row["fan"] ?></font></div>
                <a href="mall.php?id=<?PHP echo $row["id"] ?>" target="_blank"></a>
			</li>
<?PHP } ?>
			
			</ul> 
        		<div class="clear"></div>
            </div>
            
		</div>
	</div>
	<div class="clear"></div>
</div>

</div>
</body>
</html>
